//
//  EJSShoppingCartGoodsModel.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2018/1/2.
//  Copyright © 2018年 lifayu. All rights reserved.
//

#import "EJSShoppingCartGoodsModel.h"

@implementation EJSShoppingCartGoodsModel

- (void)setSelectState:(BOOL)selectState{
    NSString *userId = [EJSUserTokenModel userTokenModel].secretKey;
    [[NSUserDefaults standardUserDefaults] setBool:selectState forKey:[NSString stringWithFormat:@"%@_%@_%@",EJSGoodsSelectStatusSaveFileName,userId,self.cartId]];
}

- (BOOL)selectState{
     NSString *userId = [EJSUserTokenModel userTokenModel].secretKey;
    return [[NSUserDefaults standardUserDefaults] boolForKey:[NSString stringWithFormat:@"%@_%@_%@",EJSGoodsSelectStatusSaveFileName,userId,self.cartId]];
}


@end


